<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui">  
  
    <h:head>  
  		<title>Welcome to CAPTUR</title>
    </h:head>  

	<h:body>
	
		<p:dialog id="dialog" header="Login" widgetVar="dlg" closable="false" visible="true">  
		    <h:form method="post" action="j_security_check">
		    	<p:messages/>
			    <h:panelGrid columns="2">
  			        <h:outputLabel for="j_username" value="Username" />
			        <h:inputText id="j_username" type="text" required="true"/>
			 
			        <h:outputLabel for="j_password" value="Password" />
			        <h:inputText id="j_password" type="password" required="true"/>
			 
			        <h:panelGrid columns="2">
			            <input type="submit" name="submit" value="Login" />
			        </h:panelGrid>
			    </h:panelGrid>
		    </h:form>  
		</p:dialog>  
	
	</h:body>
	
</html>